package com.keepsport.keepsportapi.controller;

import com.keepsport.keepsportapi.service.intf.IntroduceService;
import com.keepsport.keepsportapi.vo.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
@CrossOrigin
@Api(tags = "计划测试接口")
@RestController
@RequestMapping("api/introduce")
public class IntroduceController {
    @Resource
    private IntroduceService service;


    @GetMapping("all.do")
    @ApiOperation(value = "课程展示")
    private R all(){
        return service.introduAll();
    }
}
